<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<h:form>
		<p:menubar autoSubmenuDisplay="true">
			<p:submenu label="#{msg['label.menu.cadastro']}">
				<p:menuitem value="#{msg['medico.menu']}" outcome="/pages/protected/user/medico/medicoList.xhtml" />
				<p:menuitem value="#{msg['especialidade.menu']}" outcome="/pages/protected/user/especialidade/especialidadeList.xhtml" />
				<p:menuitem value="#{msg['uf.menu']}" outcome="/pages/protected/user/uf/ufList.xhtml" />
				<p:menuitem value="#{msg['cidade.menu']}" outcome="/pages/protected/user/cidade/cidadeList.xhtml" />
				<p:menuitem value="#{msg['bairro.menu']}" outcome="/pages/protected/user/bairro/bairroList.xhtml" />
				<p:menuitem value="#{msg['hospital.menu']}" outcome="/pages/protected/user/hospital/hospitalList.xhtml" />
			</p:submenu>
			
			<p:submenu label="#{msg['label.menu.controleAcesso']}">
				<p:menuitem value="#{msg['usuario.menu']}" outcome="/pages/protected/admin/usuario/usuarioList.xhtml" />
				<p:menuitem value="#{msg['papel.menu']}" outcome="/pages/protected/admin/papel/papelList.xhtml" />
				<p:menuitem value="#{msg['versao.menu']}" outcome="/pages/protected/admin/versao/versaoList.xhtml" />
			</p:submenu>
			
			<f:facet name="options">
				<p:commandButton value="#{msg['botao.sair']}" action="#{loginBean.logout}" />
	        </f:facet>
		</p:menubar>
	</h:form>
</html>

